home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cocktail / cg.lha / cg / hag-c / Main.c < prev    next >
Text File  |  1992-11-24  |  233b  |  17 lines

  1. # include "Tree.h"
  2. # include "Eval.h"
  3.  
  4. main ()
  5. {
  6.    tTree t;
  7.    int i;
  8.  
  9.    do {
  10.       (void) scanf ("%d", & i);
  11.       t = mR (mP1 (), i);
  12.       Eval (t);
  13.       (void) printf ("%d\n", t->R.r);
  14.    } while (t->R.n != 0);
  15.    return 0;
  16. }
  17.